<script setup>
import ActivityNoteList from "@/views/contract/common/activityNote/activityNoteList.vue";
import {pageofficeOpenFile} from "@/plugins/pageoffice/pageoffice-common.js";
import {backDeptConList} from "@/utils/backList.js";

const emits = defineEmits(['loadMainViewData'])
const prop = defineProps({
  conId: {
    type: Number
  },
  isRefreshActivityNote: {
    type: Boolean,
  }
})
const isCanAddActivityNote = ref(false)

function openFile() {
  pageofficeOpenFile('/contract/dept/openFile/' + prop.conId, prop.conId)
}
</script>

<template>
  <div class="app-container">
    <el-row>
      <el-col :span="12" class="left">
        <el-row>
          <el-form-item>
            <el-button @click="backDeptConList">返 回</el-button>
            <el-button type="primary" @click="openFile">打开正文</el-button>
          </el-form-item>
        </el-row>
      </el-col>
    </el-row>

    <ActivityNoteList :isRefreshActivityNote="isRefreshActivityNote" :isCanAddActivityNote="isCanAddActivityNote"/>
  </div>
</template>

